<?js

var exampleDbName = "Example";

createPath(DbConnection.dbFolder());

var hasExample = false;
var schemas = DbConnection.schemas();
for (var i = 0; i < schemas.length; i++) {
	if (schema[i] == exampleDbName) {
		hasExample = true;
		break;
	}
}

if (!hasExample) {
	conn = new DbConnection(exampleDbName);
	conn.execNoResult("CREATE TABLE example_table( id Integer DEFAULT '0' PRIMARY KEY AUTOINCREMENT , name String DEFAULT '' NOT NULL )");
}

?>